#{extends "main_list.html"/}
%{
    def map = [:]
    map['object'] 		= "user"
    map['fields'] 		= ['truename','username','tel','mobile','login','status','role','useIp']
    map['widths'] 		= ['9','4','8','8','6','4','7','10']
    map['width']		= 800
    map['height']		= 400
    map['option_width']	= 40
    map['searchFields']         = ['truename']
}%
#{table.search map}#{/table.search}
#{table.list map}
#{table.custom 'status'}
${row.status==1?"使用":"停用"}
#{/table.custom}
#{table.custom 'login'}
${row.login==0||row.login==null?"0":row.login}
#{/table.custom}
#{table.custom 'buttons'}
#{if roleMap['blank']!=0}
<input type="button" class="btn01" value="添加" onclick="open_dialog('/Users/blank',850,470)"/>
#{/if}
#{if roleMap['delete']!=0}
<input type="submit" class="btn01" value="删除"/>
#{/if}
#{/table.custom}
#{table.custom 'useIp'}
#{if row.useIp != true}<font color="red" style="font-weight: bolder">未绑定</font>#{/if}#{if row.useIp == true}<font color="green" style="font-weight: bolder">已绑定</font>#{/if}
#{/table.custom}
#{table.custom 'option'}
&nbsp;
#{if roleMap['detail']!=0}
<a href="javascript:void(0);" onclick="open_dialog('/users/detail?id=${row.id}',800,450)">查看</a>
#{/if}
#{if roleMap['show']!=0}
<a href="javascript:void(0);" onclick="open_dialog('/users/show?id=${row.id}',850,470)">修改</a>
#{/if}
#{if roleMap['delete']!=0}
<a href="javascript:void(0);" class="option_delete" url="/users/delete?id=${row.id}">删除</a>
#{/if}
#{if roleMap['ipedit']!=0}
<a href="javascript:void(0);" onclick="open_dialog('/users/ipedit?id=${row.id}',550,350)">IP绑定</a>
#{/if}
#{/table.custom}
#{/table.list}